import Cookies from 'js-cookie'


/* cookies相关方法 */
export const cGet = function(name){
  return Cookies.get(name)
}
export const cSet = function(name,value){
  return Cookies.set(name,value)
}
export const cRemove = function(name){
  return Cookies.remove(name)
}

/* localStorage相关方法 */
export const localGet = function(name){
  return window.localStorage.getItem(name)
}
export const localSet = function(name,value){
  return window.localStorage.setItem(name,value)
}
export const localRemove = function(name){
  return window.localStorage.removeItem(name)
}
